package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotUpkeepProject;

/**
 * 电梯保养项目业务对象 iot_upkeep_project
 *
 * @author lsl
 * @date 2024-06-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotUpkeepProject.class, reverseConvertGenerate = false)
public class IotUpkeepProjectBo extends BaseEntity {

    /**
     * 项目ID
     */
    @NotNull(message = "项目ID不能为空", groups = {EditGroup.class})
    private Long projectId;

    /**
     * 关联模板ID
     */
    @NotNull(message = "关联模板ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long templateId;

    /**
     * 保养项名称
     */
    @NotBlank(message = "保养项名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String projectName;

    /**
     * 保养项要求
     */
    @NotBlank(message = "保养项要求不能为空", groups = {AddGroup.class, EditGroup.class})
    private String projectRequire;

    /**
     * 保养项类型（1.机房、2.层站、3.轿厢、4.井道）
     */
    @NotBlank(message = "保养项类型（1.机房、2.层站、3.轿厢、4.井道）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String projectType;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
